home *** CD-ROM | disk | FTP | other *** search
/ Champak 120 / Vol 120.iso / games / asteroid.swf / scripts / __Packages / com / bjc / resizers / Resizer.as next >
Text File  |  2010-11-09  |  18KB  |  441 lines

  1. function ┬º\x01\x02┬º()
  2. {
  3.    return 1361 % 511 * 5;
  4. }
  5. var ┬º\x01┬º = -789 + "\x01\x02"();
  6. while(true)
  7. {
  8.    if(eval("\x01") == 906)
  9.    {
  10.       set("\x01",eval("\x01") - 663);
  11.       ┬º┬ºpush(true);
  12.    }
  13.    else if(eval("\x01") == 773)
  14.    {
  15.       set("\x01",eval("\x01") - 313);
  16.       ┬º┬ºpush(eval(function ┬º\x01\x02┬º()
  17.       {
  18.          return 1361 % 511 * 5;
  19.       }));
  20.    }
  21.    else
  22.    {
  23.       if(eval("\x01") == 285)
  24.       {
  25.          set("\x01",eval("\x01") + 326);
  26.          if(!_global.com)
  27.          {
  28.             _global.com = new Object();
  29.          }
  30.          function ┬º\x01\x02┬º()
  31.          {
  32.             return 1361 % 511 * 5;
  33.          }
  34.          if(!_global.com.bjc)
  35.          {
  36.             _global.com.bjc = new Object();
  37.          }
  38.          ┬º┬ºpop();
  39.          if(!_global.com.bjc.resizers)
  40.          {
  41.             _global.com.bjc.resizers = new Object();
  42.          }
  43.          ┬º┬ºpop();
  44.          if(!_global.com.bjc.resizers.Resizer)
  45.          {
  46.             com.bjc.resizers.Resizer extends com.bjc.core.BJCComponent;
  47.             var _loc2_ = com.bjc.resizers.Resizer = function(Void)
  48.             {
  49.                super();
  50.             }.prototype;
  51.             _loc2_.init = function(Void)
  52.             {
  53.                super.init();
  54.                this.draw();
  55.             };
  56.             _loc2_.createChildren = function(Void)
  57.             {
  58.                this.createEmptyMovieClip("__topLeft",0);
  59.                this.createEmptyMovieClip("__topMid",1);
  60.                this.createEmptyMovieClip("__topRight",2);
  61.                this.createEmptyMovieClip("__midLeft",3);
  62.                this.createEmptyMovieClip("__midMid",4);
  63.                this.createEmptyMovieClip("__midRight",5);
  64.                this.createEmptyMovieClip("__bottomLeft",6);
  65.                this.createEmptyMovieClip("__bottomMid",7);
  66.                this.createEmptyMovieClip("__bottomRight",8);
  67.                this.__topLeft.createEmptyMovieClip("mask",1);
  68.                this.__topMid.createEmptyMovieClip("mask",1);
  69.                this.__topRight.createEmptyMovieClip("mask",1);
  70.                this.__midLeft.createEmptyMovieClip("mask",1);
  71.                this.__midMid.createEmptyMovieClip("mask",1);
  72.                this.__midRight.createEmptyMovieClip("mask",1);
  73.                this.__bottomLeft.createEmptyMovieClip("mask",1);
  74.                this.__bottomMid.createEmptyMovieClip("mask",1);
  75.                this.__bottomRight.createEmptyMovieClip("mask",1);
  76.             };
  77.             _loc2_.draw = function(Void)
  78.             {
  79.                this.__topLeft.attachMovie(this.__skin,"skin",0);
  80.                this.__topMid.attachMovie(this.__skin,"skin",0);
  81.                this.__topRight.attachMovie(this.__skin,"skin",0);
  82.                this.__midLeft.attachMovie(this.__skin,"skin",0);
  83.                this.__midMid.attachMovie(this.__skin,"skin",0);
  84.                this.__midRight.attachMovie(this.__skin,"skin",0);
  85.                this.__bottomLeft.attachMovie(this.__skin,"skin",0);
  86.                this.__bottomMid.attachMovie(this.__skin,"skin",0);
  87.                this.__bottomRight.attachMovie(this.__skin,"skin",0);
  88.                this.__topLeft.skin.setMask(this.__topLeft.mask);
  89.                this.__topMid.skin.setMask(this.__topMid.mask);
  90.                this.__topRight.skin.setMask(this.__topRight.mask);
  91.                this.__midLeft.skin.setMask(this.__midLeft.mask);
  92.                this.__midMid.skin.setMask(this.__midMid.mask);
  93.                this.__midRight.skin.setMask(this.__midRight.mask);
  94.                this.__bottomLeft.skin.setMask(this.__bottomLeft.mask);
  95.                this.__bottomMid.skin.setMask(this.__bottomMid.mask);
  96.                this.__bottomRight.skin.setMask(this.__bottomRight.mask);
  97.                this.size();
  98.             };
  99.             _loc2_.size = function(Void)
  100.             {
  101.                this.__width = Math.max(this.__width,this.__leftMargin + this.__rightMargin);
  102.                this.__height = Math.max(this.__height,this.__topMargin + this.__bottomMargin);
  103.                this.__midMid.skin._xscale = 100;
  104.                this.__midMid.skin._yscale = 100;
  105.                var _loc7_ = this.__midMid.skin._width - this.__leftMargin - this.__rightMargin;
  106.                var _loc2_ = this.__width - this.__leftMargin - this.__rightMargin;
  107.                var _loc5_ = _loc2_ / _loc7_;
  108.                var _loc6_ = this.__midMid.skin._height - this.__topMargin - this.__bottomMargin;
  109.                var _loc3_ = this.__height - this.__topMargin - this.__bottomMargin;
  110.                var _loc4_ = _loc3_ / _loc6_;
  111.                this.__topMid.skin._xscale = _loc5_ * 100;
  112.                this.__topMid.skin._x = (- this.__leftMargin) * _loc5_;
  113.                this.__topMid._x = this.__leftMargin;
  114.                this.__topRight._x = this.__width - this.__rightMargin;
  115.                this.__topRight.skin._x = this.__rightMargin - this.__topRight.skin._width;
  116.                this.__midLeft.skin._yscale = _loc4_ * 100;
  117.                this.__midLeft.skin._y = (- this.__topMargin) * _loc4_;
  118.                this.__midLeft._y = this.__topMargin;
  119.                this.__midMid.skin._xscale = _loc5_ * 100;
  120.                this.__midMid.skin._x = (- this.__leftMargin) * _loc5_;
  121.                this.__midMid._x = this.__leftMargin;
  122.                this.__midMid.skin._yscale = _loc4_ * 100;
  123.                this.__midMid.skin._y = (- this.__topMargin) * _loc4_;
  124.                this.__midMid._y = this.__topMargin;
  125.                this.__midRight._x = this.__width - this.__rightMargin;
  126.                this.__midRight.skin._x = this.__rightMargin - this.__midRight.skin._width;
  127.                this.__midRight.skin._yscale = _loc4_ * 100;
  128.                this.__midRight.skin._y = (- this.__topMargin) * _loc4_;
  129.                this.__midRight._y = this.__topMargin;
  130.                this.__bottomLeft._y = this.__height - this.__bottomMargin;
  131.                this.__bottomLeft.skin._y = this.__bottomMargin - this.__bottomLeft.skin._height;
  132.                this.__bottomMid.skin._xscale = _loc5_ * 100;
  133.                this.__bottomMid.skin._x = (- this.__leftMargin) * _loc5_;
  134.                this.__bottomMid._x = this.__leftMargin;
  135.                this.__bottomMid._y = this.__height - this.__bottomMargin;
  136.                this.__bottomMid.skin._y = this.__bottomMargin - this.__bottomMid.skin._height;
  137.                this.__bottomRight._x = this.__width - this.__rightMargin;
  138.                this.__bottomRight.skin._x = this.__rightMargin - this.__bottomRight.skin._width;
  139.                this.__bottomRight._y = this.__height - this.__bottomMargin;
  140.                this.__bottomRight.skin._y = this.__bottomMargin - this.__bottomRight.skin._height;
  141.                this.__topLeft.mask.clear();
  142.                this.__topLeft.mask.beginFill(16777215);
  143.                this.__topLeft.mask.lineTo(this.__leftMargin,0);
  144.                this.__topLeft.mask.lineTo(this.__leftMargin,this.__topMargin);
  145.                this.__topLeft.mask.lineTo(0,this.__topMargin);
  146.                this.__topLeft.mask.lineTo(0,0);
  147.                this.__topLeft.mask.endFill();
  148.                this.__topMid.mask.clear();
  149.                this.__topMid.mask.beginFill(16777215);
  150.                this.__topMid.mask.lineTo(_loc2_,0);
  151.                this.__topMid.mask.lineTo(_loc2_,this.__topMargin);
  152.                this.__topMid.mask.lineTo(0,this.__topMargin);
  153.                this.__topMid.mask.lineTo(0,0);
  154.                this.__topMid.mask.endFill();
  155.                this.__topRight.mask.clear();
  156.                this.__topRight.mask.beginFill(16777215);
  157.                this.__topRight.mask.lineTo(this.__rightMargin,0);
  158.                this.__topRight.mask.lineTo(this.__rightMargin,this.__topMargin);
  159.                this.__topRight.mask.lineTo(0,this.__topMargin);
  160.                this.__topRight.mask.lineTo(0,0);
  161.                this.__topRight.mask.endFill();
  162.                this.__midLeft.mask.clear();
  163.                this.__midLeft.mask.beginFill(16777215);
  164.                this.__midLeft.mask.lineTo(this.__leftMargin,0);
  165.                this.__midLeft.mask.lineTo(this.__leftMargin,_loc3_);
  166.                this.__midLeft.mask.lineTo(0,_loc3_);
  167.                this.__midLeft.mask.lineTo(0,0);
  168.                this.__midLeft.mask.endFill();
  169.                this.__midMid.mask.clear();
  170.                this.__midMid.mask.beginFill(16777215);
  171.                this.__midMid.mask.lineTo(_loc2_,0);
  172.                this.__midMid.mask.lineTo(_loc2_,_loc3_);
  173.                this.__midMid.mask.lineTo(0,_loc3_);
  174.                this.__midMid.mask.lineTo(0,0);
  175.                this.__midMid.mask.endFill();
  176.                this.__midRight.mask.clear();
  177.                this.__midRight.mask.beginFill(16777215);
  178.                this.__midRight.mask.lineTo(this.__rightMargin,0);
  179.                this.__midRight.mask.lineTo(this.__rightMargin,_loc3_);
  180.                this.__midRight.mask.lineTo(0,_loc3_);
  181.                this.__midRight.mask.lineTo(0,0);
  182.                this.__midRight.mask.endFill();
  183.                this.__bottomLeft.mask.clear();
  184.                this.__bottomLeft.mask.beginFill(16777215);
  185.                this.__bottomLeft.mask.lineTo(this.__leftMargin,0);
  186.                this.__bottomLeft.mask.lineTo(this.__leftMargin,this.__bottomMargin);
  187.                this.__bottomLeft.mask.lineTo(0,this.__bottomMargin);
  188.                this.__bottomLeft.mask.lineTo(0,0);
  189.                this.__bottomLeft.mask.endFill();
  190.                this.__bottomMid.mask.clear();
  191.                this.__bottomMid.mask.beginFill(16777215);
  192.                this.__bottomMid.mask.lineTo(_loc2_,0);
  193.                this.__bottomMid.mask.lineTo(_loc2_,this.__bottomMargin);
  194.                this.__bottomMid.mask.lineTo(0,this.__bottomMargin);
  195.                this.__bottomMid.mask.lineTo(0,0);
  196.                this.__bottomMid.mask.endFill();
  197.                this.__bottomRight.mask.clear();
  198.                this.__bottomRight.mask.beginFill(16777215);
  199.                this.__bottomRight.mask.lineTo(this.__rightMargin,0);
  200.                this.__bottomRight.mask.lineTo(this.__rightMargin,this.__bottomMargin);
  201.                this.__bottomRight.mask.lineTo(0,this.__bottomMargin);
  202.                this.__bottomRight.mask.lineTo(0,0);
  203.                this.__bottomRight.mask.endFill();
  204.             };
  205.             com.bjc.resizers.Resizer = function(Void)
  206.             {
  207.                super();
  208.             }.create = function(target, id, depth, initObj)
  209.             {
  210.                return com.bjc.resizers.Resizer(target.attachMovie("Resizer",id,depth,initObj));
  211.             };
  212.             _loc2_.__set__bottomMargin = function(rm)
  213.             {
  214.                this.__bottomMargin = rm;
  215.                this.invalidate();
  216.                return this.__get__bottomMargin();
  217.             };
  218.             _loc2_.__get__bottomMargin = function()
  219.             {
  220.                return this.__bottomMargin;
  221.             };
  222.             _loc2_.__set__leftMargin = function(lm)
  223.             {
  224.                this.__leftMargin = lm;
  225.                this.invalidate();
  226.                return this.__get__leftMargin();
  227.             };
  228.             _loc2_.__get__leftMargin = function()
  229.             {
  230.                return this.__leftMargin;
  231.             };
  232.             _loc2_.__set__margin = function(m)
  233.             {
  234.                this.__topMargin = m;
  235.                this.__bottomMargin = m;
  236.                this.__leftMargin = m;
  237.                this.__rightMargin = m;
  238.                this.invalidate();
  239.                return this.__get__margin();
  240.             };
  241.             _loc2_.__get__margin = function()
  242.             {
  243.                if(this.__topMargin == this.__bottomMargin && this.__topMargin == this.__leftMargin && this.__topMargin == this.__rightMargin)
  244.                {
  245.                   return this.__topMargin;
  246.                }
  247.                return undefined;
  248.             };
  249.             _loc2_.__set__rightMargin = function(rm)
  250.             {
  251.                this.__rightMargin = rm;
  252.                this.invalidate();
  253.                return this.__get__rightMargin();
  254.             };
  255.             _loc2_.__get__rightMargin = function()
  256.             {
  257.                return this.__rightMargin;
  258.             };
  259.             _loc2_.__set__skin = function(symbol)
  260.             {
  261.                this.__skin = symbol;
  262.                this.draw();
  263.                return this.__get__skin();
  264.             };
  265.             _loc2_.__get__skin = function()
  266.             {
  267.                return this.__skin;
  268.             };
  269.             _loc2_.__set__topMargin = function(lm)
  270.             {
  271.                this.__topMargin = lm;
  272.                this.invalidate();
  273.                return this.__get__topMargin();
  274.             };
  275.             _loc2_.__get__topMargin = function()
  276.             {
  277.                return this.__topMargin;
  278.             };
  279.             _loc2_.clipParameters = {topMargin:1,bottomMargin:1,leftMargin:1,rightMargin:1,skin:1};
  280.             _loc2_.__bottomMargin = 30;
  281.             _loc2_.__leftMargin = 30;
  282.             _loc2_.__rightMargin = 30;
  283.             _loc2_.__topMargin = 30;
  284.             _loc2_.__skin = "defaultSkin";
  285.             ┬º┬ºpush(_loc2_.addProperty("bottomMargin",_loc2_.__get__bottomMargin,_loc2_.__set__bottomMargin));
  286.             ┬º┬ºpush(_loc2_.addProperty("leftMargin",_loc2_.__get__leftMargin,_loc2_.__set__leftMargin));
  287.             ┬º┬ºpush(_loc2_.addProperty("margin",_loc2_.__get__margin,_loc2_.__set__margin));
  288.             ┬º┬ºpush(_loc2_.addProperty("rightMargin",_loc2_.__get__rightMargin,_loc2_.__set__rightMargin));
  289.             ┬º┬ºpush(_loc2_.addProperty("skin",_loc2_.__get__skin,_loc2_.__set__skin));
  290.             ┬º┬ºpush(_loc2_.addProperty("topMargin",_loc2_.__get__topMargin,_loc2_.__set__topMargin));
  291.             ┬º┬ºpush(ASSetPropFlags(com.bjc.resizers.Resizer.prototype,null,1));
  292.          }
  293.          ┬º┬ºpop();
  294.          break;
  295.       }
  296.       if(eval("\x01") == 243)
  297.       {
  298.          set("\x01",eval("\x01") + 23);
  299.          if(function ┬º\x01\x02┬º()
  300.          {
  301.             return 1361 % 511 * 5;
  302.          })
  303.          {
  304.             set("\x01",eval("\x01") + 379);
  305.          }
  306.       }
  307.       else if(eval("\x01") == 566)
  308.       {
  309.          set("\x01",eval("\x01") - 281);
  310.       }
  311.       else
  312.       {
  313.          if(eval("\x01") == 266)
  314.          {
  315.             set("\x01",eval("\x01") + 379);
  316.             ┬º┬ºpush(┬º┬ºpop() >>> function ┬º\x01\x02┬º()
  317.             {
  318.                return 1361 % 511 * 5;
  319.             });
  320.             break;
  321.          }
  322.          if(eval("\x01") == 315)
  323.          {
  324.             set("\x01",eval("\x01") + 183);
  325.             if(function ┬º\x01\x02┬º()
  326.             {
  327.                return 1361 % 511 * 5;
  328.             })
  329.             {
  330.                set("\x01",eval("\x01") - 217);
  331.             }
  332.          }
  333.          else if(eval("\x01") == 711)
  334.          {
  335.             set("\x01",eval("\x01") - 247);
  336.          }
  337.          else if(eval("\x01") == 481)
  338.          {
  339.             set("\x01",eval("\x01") + 85);
  340.             if(function ┬º\x01\x02┬º()
  341.             {
  342.                return 1361 % 511 * 5;
  343.             })
  344.             {
  345.                set("\x01",eval("\x01") - 281);
  346.             }
  347.          }
  348.          else if(eval("\x01") == 25)
  349.          {
  350.             set("\x01",eval("\x01") + 685);
  351.             ┬º┬ºpush(true);
  352.          }
  353.          else if(eval("\x01") == 460)
  354.          {
  355.             set("\x01",eval("\x01") + 21);
  356.             ┬º┬ºpush(!function ┬º\x01\x02┬º()
  357.             {
  358.                return 1361 % 511 * 5;
  359.             });
  360.          }
  361.          else if(eval("\x01") == 362)
  362.          {
  363.             set("\x01",eval("\x01") - 24);
  364.          }
  365.          else if(eval("\x01") == 645)
  366.          {
  367.             set("\x01",eval("\x01") - 620);
  368.          }
  369.          else if(eval("\x01") == 795)
  370.          {
  371.             set("\x01",eval("\x01") - 726);
  372.             var ┬º┬ºpop() = function ┬º\x01\x02┬º()
  373.             {
  374.                return 1361 % 511 * 5;
  375.             };
  376.          }
  377.          else if(eval("\x01") == 996)
  378.          {
  379.             set("\x01",eval("\x01") - 971);
  380.          }
  381.          else if(eval("\x01") == 710)
  382.          {
  383.             set("\x01",eval("\x01") + 214);
  384.             if(function ┬º\x01\x02┬º()
  385.             {
  386.                return 1361 % 511 * 5;
  387.             })
  388.             {
  389.                set("\x01",eval("\x01") - 270);
  390.             }
  391.          }
  392.          else if(eval("\x01") == 69)
  393.          {
  394.             set("\x01",eval("\x01") + 704);
  395.             ┬º┬ºpush("\x0f");
  396.          }
  397.          else if(eval("\x01") == 281)
  398.          {
  399.             set("\x01",eval("\x01") + 183);
  400.          }
  401.          else
  402.          {
  403.             if(eval("\x01") == 924)
  404.             {
  405.                set("\x01",eval("\x01") - 270);
  406.                break;
  407.             }
  408.             if(eval("\x01") == 611)
  409.             {
  410.                set("\x01",eval("\x01") - 611);
  411.                break;
  412.             }
  413.             if(eval("\x01") == 654)
  414.             {
  415.                set("\x01",eval("\x01") - 316);
  416.             }
  417.             else if(eval("\x01") == 464)
  418.             {
  419.                set("\x01",eval("\x01") + 331);
  420.                ┬º┬ºpush("\x0f");
  421.                ┬º┬ºpush(1);
  422.             }
  423.             else
  424.             {
  425.                if(eval("\x01") == 498)
  426.                {
  427.                   set("\x01",eval("\x01") - 217);
  428.                   break;
  429.                }
  430.                if(eval("\x01") != 338)
  431.                {
  432.                   break;
  433.                }
  434.                set("\x01",eval("\x01") - 23);
  435.                ┬º┬ºpush(true);
  436.             }
  437.          }
  438.       }
  439.    }
  440. }
  441.